home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / SSoundSystem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-23  |  880 b   |  44 lines

  1. // SSoundSystem.h: Schnittstelle fⁿr die Klasse SSoundSystem.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_)
  6. #define AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include <bass.h>
  13.  
  14. #define NUM_SAMPLES 1
  15.  
  16. enum 
  17. {
  18.     STREAM_RUDI,
  19.     STREAM_BELLS
  20. };
  21.  
  22. enum
  23. {
  24.     SAMPLE_RELEASE
  25. };
  26.  
  27. class SSoundSystem  
  28. {
  29. public:
  30.     void playSample(int which);
  31.     void stopMusic(int which);
  32.     void playMusic(int which,bool looped = false);
  33.     void init(HWND hWnd);
  34.     SSoundSystem();
  35.     virtual ~SSoundSystem();
  36. protected:
  37.     HSAMPLE samples[NUM_SAMPLES];
  38.     HSTREAM streams[2];
  39.     bool inited;
  40.  
  41. };
  42.  
  43. #endif // !defined(AFX_SSOUNDSYSTEM_H__420C49C8_297D_4866_A87C_203694F3CB5E__INCLUDED_)
  44.